﻿using System;
using System.Collections.Generic;

namespace GBlog.Core.Entities
{
    public class Post : EntityBase<int>
    {
        public string Title { get; set; }
        public string Seo { get; set; }
        public string Content { get; set; }
        public int Views { get; set; }
        public bool IsPublished { get; set; }
        public DateTime? Published { get; set; }

        public int UserID { get; set; }
        public virtual User User { get; set; }

        public virtual ICollection<Tag> Tags { get; set; }
        public virtual ICollection<Comment> Comments { get; set; }
        public virtual ICollection<File> Files { get; set; }
    }
}